﻿<%@ Page Title="Rule Execution" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RuleExecution.aspx.cs" Inherits="TestJQGrid.RuleExecution" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            width: 142px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="lblMenuName" runat="server"></asp:Label>
    <table style="width: 100%;">
        <tr>
            <td align="left" valign="top" style="width: 15%; border: 1px solid;">
                <asp:DataList ID="dlFormula" runat="server" RepeatColumns="1" RepeatDirection="Vertical"
                    CellPadding="2" DataKeyField="RuleID" >
                    <ItemTemplate>
                        <asp:LinkButton ID="lbt_formula" Text='<%# DataBinder.Eval(Container.DataItem,"RuleName") %>'
                            CommandArgument='<%# Eval("RuleID") %>' runat="server" OnClick="lbt_formula_Click">LinkButton</asp:LinkButton>
                    </ItemTemplate>
                </asp:DataList>
            </td>
            <td align="left" valign="top" style="width: 85%; border: 1px solid;">
            <asp:HiddenField ID="hf_ruleID" runat="server" />
            <asp:HiddenField ID="hf_ruleType" runat="server" />
                <table>
                    <tr>
                        <td colspan="2">
                            Rule Name :&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lblruleName" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Rule Type :&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lblruleType" runat="server"></asp:Label><br />
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <b>Subrule List</b><br />
                            <asp:ListBox ID="lb_Subrule" Rows="13" runat="server" CssClass="smallbutton" 
                                Width="200px"></asp:ListBox>
                        </td>
                        <td valign="top">
                            <b>Unbilled/Adjusted Cycles</b><br />
                            <div style="overflow-y: scroll; overflow-x: hidden; width: 200px; height: 208px;"
                                class="smallbutton">
                                <asp:RadioButtonList ID="rbl_cycle" runat="server" RepeatDirection="Vertical">
                                </asp:RadioButtonList>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Button ID="btn_execute" runat="server" Text="Execute" 
                                OnClientClick="return IsExecute();" onclick="btn_execute_Click" />
                        </td>
                        <td align="left">
                            <asp:Button ID="btn_reset" runat="server" Text="Reset" 
                                onclick="btn_reset_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
